package com.bulletelc.apollopre.module.main.center.orders.detail;

import com.bulletelc.apollopre.entity.OrderDetailBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

/**
 * author: lhl
 * date  : 2018/01/24
 * desc  : TODO
 */

public interface OrderDetailContract {

    interface View extends IView {
        void onSuccess(OrderDetailBean orderDetailBean);
        void onFail(String fail);
        void onError(String error);

        void onSuccessConfirmSign();
        void onFailConfirmSign(String fail);
        void onErrorConfirmSign(String error);
    }

    interface Presenter extends IPresenter<View> {
        void getOrderDetail(String orderId);

        /**
         * 确认签收
         * @param json
         */
        void confirmSign(String json);
    }


}
